package com.wondersgroup.esclient.modle;

import java.io.Serializable;
import java.util.Map;

/**
 * 内部使用
 * @author Walker
 *
 */
public class ESQuery implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 5329894103501373999L;

	private Integer from;

	private Integer size;

	private Map<String, Object> query;

	public ESQuery() {
		super();
	}

	public ESQuery(Map<String, Object> query) {
		super();
		this.query = query;
	}

	public ESQuery(Integer from, Integer size, Map<String, Object> query) {
		super();
		this.from = from;
		this.size = size;
		this.query = query;
	}

	public Integer getFrom() {
		return from;
	}

	public void setFrom(Integer from) {
		this.from = from;
	}

	public Integer getSize() {
		return size;
	}

	public void setSize(Integer size) {
		this.size = size;
	}

	public Map<String, Object> getQuery() {
		return query;
	}

	public void setQuery(Map<String, Object> query) {
		this.query = query;
	}

}
